package com.winbomb.simulife.base;

public class CardType {

	public static final CardType UNKNOWN = new CardType(0, 99);
	public static final CardType LEARN = new CardType(100, 199);
	public static final CardType SPORTS = new CardType(200, 299);
	public static final CardType AMUSE = new CardType(300, 399);
	public static final CardType TALENT = new CardType(400, 499);

	private short minId;
	private short maxId;

	private CardType(int minId, int maxId) {
		this.minId = (short) minId;
		this.maxId = (short) maxId;
	}

	public boolean isThisType(short id) {
		return id >= minId && id <= maxId;
	}

}
